package com.example.rest.service.Impl;

import com.example.api.entiry.Organ;
import com.example.rest.Repository.TestRepository;
import com.example.rest.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author loubenke
 * @date 2024/3/7 15:30
 */
@Service
@Slf4j
public class TestServiceImpl implements TestService {

    @Autowired
    private TestRepository testRepository;
    @Override
    public Organ query(int id) {
        return testRepository.selectById(id);
    }
}
